package com.web;

public enum CodeEnum {

    SUCCESS("返回成功", 200),
    FAILURE("服务器异常", 500);

    //状态名称
    private String codeName;

    //状态码
    private int code;

    private CodeEnum(String codeName, int code){
        this.code = code;
        this.codeName = codeName;
    }

    public String getCodeName(){
        return this.codeName;
    }

    public int getCode(){
        return this.code;
    }


}
